Skip to content

Commit 31d09a9

Browse files
committed
fix: ci test
1 parent db23b65 commit 31d09a9

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/lint.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ jobs:
1313
name: Run linters
1414
runs-on: ubuntu-latest
1515

16+
permissions:
17+
contents: read
18+
packages: read
19+
# To report GitHub Actions status checks
20+
statuses: write
21+
1622
steps:
1723
- name: Check out Git repository
1824
uses: actions/checkout@v4

packages/operator/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ const operators = generateMapping()
6565
export default operators
6666

6767
export function getOperatorId(operatorConfig) {
68-
// return operatorConfig.filename.replace(/^(dyn_illust_)(char_[\d]+)(_[\w]+)(|(_.+))$/g, '$2$3$4')
69-
return operatorConfig.fallback_name.replace(/^(char_[\d]+)(_[\w]+)(_.+)$/g, '$1$2$3')
68+
return operatorConfig.filename.replace(/^(dyn_illust_)(char_[\d]+)(_[\w]+)(|(_.+))$/g, '$2$3$4')
7069
}
7170

7271
export const build = async (namesToBuild) => {

0 commit comments

Comments
 (0)