Skip to content

Commit f148d97

Browse files
committed
drop support on otp 19
1 parent 7b4a05a commit f148d97

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
PROJECT = aihtml
22
PROJECT_DESCRIPTION = html tool for productions from ailink.io
3-
PROJECT_VERSION = 0.1.7
3+
PROJECT_VERSION = 0.1.8
44

55
ERLC_OPTS = -Werror +debug_info +warn_export_vars +warn_shadow_vars +warn_obsolete_guard
66
DEPS = ailib
77

8-
dep_ailib = git https://github.com/DavidAlphaFox/ailib.git tag-0.2.0
8+
dep_ailib = git https://github.com/DavidAlphaFox/ailib.git tag-0.2.7
99

1010
include erlang.mk

src/ai_mustache_loader.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ remove_suffix(Name,Suffix)->
256256
has_suffix(Name,Suffix)->
257257
if
258258
erlang:byte_size(Suffix) > 0 ->
259-
case ai_string:find(Name,Suffix,trailing) of
259+
case string:find(Name,Suffix,trailing) of
260260
nomatch -> false;
261261
_ -> true
262262
end;
@@ -375,9 +375,9 @@ prepare_loader(ViewPath,Suffix)->
375375
false -> Acc;
376376
_->
377377
%% 找非子模板
378-
case ai_string:find(I,<<"_">>,leading) of
378+
case string:find(I,<<"_">>,leading) of
379379
nomatch ->
380-
T0 = ai_string:prefix(I,Prefix),
380+
T0 = string:prefix(I,Prefix),
381381
T1 = remove_suffix(T0,Suffix),
382382
[T1|Acc];
383383
_ -> Acc

src/ai_mustache_runner.erl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,6 @@ run(_SectionIR,Acc,[],[{IR,OldCtx}|Stack],Partials,_Ctx)->
7070
run(IR,Acc,Stack,Partials,OldCtx);
7171
run(SectionIR,Acc,[H|T],Stack,Partials,Ctx)->
7272
Acc0 = run(SectionIR,Acc,[],Partials,maps:merge(Ctx,H)),
73-
run(SectionIR,Acc0,T,Stack,Partials,Ctx).
73+
run(SectionIR,Acc0,T,Stack,Partials,Ctx).
74+
75+

0 commit comments

Comments
 (0)