Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
Koishi Plugin Dicex
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
3rdeye
Koishi Plugin Dicex
Commits
6ff624ed
"...svn:/svn.code.sf.net/p/irrlicht/code/trunk@5147" did not exist on "c7c5f166fe2a42e942400283b6db6667a400dd71"
Commit
6ff624ed
authored
Aug 17, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix rc shortcut again
parent
0a5ef0c1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
src/modules/compat.ts
src/modules/compat.ts
+4
-1
src/utility/constant.ts
src/utility/constant.ts
+1
-1
No files found.
src/modules/compat.ts
View file @
6ff624ed
...
@@ -21,7 +21,10 @@ export class CompatModule extends BaseModule {
...
@@ -21,7 +21,10 @@ export class CompatModule extends BaseModule {
const
matching
=
expr
.
match
(
rcRegexp
);
const
matching
=
expr
.
match
(
rcRegexp
);
return
session
.
execute
({
return
session
.
execute
({
name
:
'
rc
'
,
name
:
'
rc
'
,
args
:
[
matching
[
2
]?.
trim
()
||
'
检定
'
,
matching
[
1
]],
args
:
[
matching
[
1
],
...(
matching
[
2
]
?
[
parseInt
(
matching
[
2
].
trim
())]
:
[]),
],
});
});
}
}
return
next
();
return
next
();
...
...
src/utility/constant.ts
View file @
6ff624ed
export
const
rollRegexp
=
/^
((\d
*
)
d
)?(\d
+
)(\+((\d
*
)
d
)?(\d
+
))
*$/i
;
export
const
rollRegexp
=
/^
((\d
*
)
d
)?(\d
+
)(\+((\d
*
)
d
)?(\d
+
))
*$/i
;
export
const
rcRegexp
=
/^
[
ac
](
\d{1,3})(
+
[^
]
.*
)?
$/i
;
export
const
rcRegexp
=
/^
[
ac
](
[^
]
+
)(
+
\d{1,3}
)?
$/i
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment