action-debian-package/node_modules/ramda/es/internal/_cloneRegExp.js
Dawid Dziurla 9308795b8b
update
2020-03-26 15:37:35 +01:00

3 lines
243 B
JavaScript

export default function _cloneRegExp(pattern) {
return new RegExp(pattern.source, (pattern.global ? 'g' : '') + (pattern.ignoreCase ? 'i' : '') + (pattern.multiline ? 'm' : '') + (pattern.sticky ? 'y' : '') + (pattern.unicode ? 'u' : ''));
}