0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-01-03 18:51:48 +00:00
renovatebot_renovate/lib/modules/manager/custom/regex/utils.spec.ts
2023-11-07 15:50:29 +00:00

14 lines
393 B
TypeScript

import { regEx } from '../../../../util/regex';
import * as utils from './utils';
describe('modules/manager/custom/regex/utils', () => {
it('does not crash for lazy regex', () => {
const lazyMatch = regEx('(?<currentDigest>.*?)', 'g');
expect(
utils.regexMatchAll(
lazyMatch,
'1f699d2bfc99bbbe4c1ed5bb8fc21e6911d69c6e\n',
),
).toBeArray();
});
});