mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 01:18:05 +08:00
refactor(web): replace String.match() with RegExp.exec() for non-global regex (#32386)
This commit is contained in:
@ -377,7 +377,7 @@ async function main(): Promise<void> {
|
||||
|
||||
for (const openapiPath of openApiPaths) {
|
||||
// Determine language from path
|
||||
const langMatch = openapiPath.match(/^(en|zh|ja)\//)
|
||||
const langMatch = /^(en|zh|ja)\//.exec(openapiPath)
|
||||
if (!langMatch)
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user