Skip to content

Commit 28c9e5a

Browse files
committed
update rust dependencies
1 parent 6c7b060 commit 28c9e5a

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ repository = "https://github.com/2fd/rust-regex-playground"
1010

1111
[dependencies]
1212
toml = "0.5.1"
13-
regex = "1.1.6"
14-
regex-syntax = "0.6.6"
13+
regex = "1.1.7"
14+
regex-syntax = "0.6.7"
1515
js-sys = "0.3.22"
1616
wasm-bindgen = "0.2"
1717

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"test": "wasm-pack test --node --chrome --headless",
88
"start": "parcel index.html pkg/index_bg.wasm -p 8080",
99
"clear": "rm -rf dist/pkg dist/*.js dist/*.css dist/*.map",
10-
"build": "parcel build --public-url \"/rust-regex-playground/\" index.html pkg/index_bg.wasm"
10+
"build": "npm run clear && npm run build::rust && npm run build::page",
11+
"build::rust": "wasm-pack build --out-name index --target web --release",
12+
"build::page": "parcel build --public-url \"/rust-regex-playground/\" index.html pkg/index_bg.wasm"
1113
},
1214
"repository": {
1315
"type": "git",

playground/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export default function App({ store }: IAppProps) {
129129
target="_blank"
130130
href={
131131
"https://docs.rs/regex" +
132-
(versions.regex ? versions.regex + "/regex/" : "")
132+
(versions.regex ? "/" + versions.regex + "/regex/" : "")
133133
}
134134
appearance="minimal"
135135
height={32}
@@ -144,7 +144,7 @@ export default function App({ store }: IAppProps) {
144144
href={
145145
"https://docs.rs/regex-syntax" +
146146
(versions.regex_syntax
147-
? versions.regex_syntax + "/regex_syntax/"
147+
? "/" + versions.regex_syntax + "/regex_syntax/"
148148
: "")
149149
}
150150
appearance="minimal"

0 commit comments

Comments
 (0)