Changeset 53 in code
- Timestamp:
- Oct 28, 2021, 4:10:15 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.gitignore
r51 r53 1 1 *~ 2 2 *.bak 3 **.pub 3 4 4 5 /zs 5 /.pub6 6 /dist 7 /test.md -
trunk/main.go
r52 r53 34 34 if oldext == "" || strings.HasSuffix(path, oldext) { 35 35 return strings.TrimSuffix(path, oldext) + newext 36 } else { 37 return path 38 } 36 } 37 return path 39 38 } 40 39 … … 170 169 } 171 170 } 172 return s, nil171 173 172 } 174 173 -
trunk/main_test.go
r48 r53 56 56 --- 57 57 Some content in markdown 58 `: Vars{58 `: { 59 59 "foo": "bar", 60 60 "title": "Hello, world!", … … 68 68 --- 69 69 Hello 70 `: Vars{70 `: { 71 71 "url": "example.com/foo.html", 72 72 "__content": "Hello\n",
Note:
See TracChangeset
for help on using the changeset viewer.