mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-21 05:27:34 +08:00
Small refactoring, several tests added
This commit is contained in:
4
cypress/fixtures/getFirstWordOrder.js
Normal file
4
cypress/fixtures/getFirstWordOrder.js
Normal file
@@ -0,0 +1,4 @@
|
||||
/** @param {String[]} words */
|
||||
export default function getFirstWordOrder(words) {
|
||||
return new RegExp("(?:.|\\n)+" + words.map(word => word + "(?:.|\\n)+").join("") + "(?:.|\\n)+")
|
||||
}
|
||||
Reference in New Issue
Block a user