His first instinct was to check the deployment history. Three hours ago, a junior developer named Priya had pushed a hotfix to the payment-validator service. The commit message was innocent: "Optimized regex for currency parsing."
Priya replied with a single word: "Done."
His heart stopped. He knew that symbol. In regex, the ? made the quantifier non-greedy. It told the engine to match as few times as possible. In a validation function for currency, that meant it would stop after the first comma group. 1,000,000 would become 1,000 . A million dollars transformed into a thousand.
He stared at them side-by-side in Notepad++. The default white backgrounds glared back at him. He scrolled. Then scrolled again. His eyes blurred. The differences were invisible—a changed quantifier here, a removed escape character there. It was like looking for a typo in a phone book.
His first instinct was to check the deployment history. Three hours ago, a junior developer named Priya had pushed a hotfix to the payment-validator service. The commit message was innocent: "Optimized regex for currency parsing."
Priya replied with a single word: "Done."
His heart stopped. He knew that symbol. In regex, the ? made the quantifier non-greedy. It told the engine to match as few times as possible. In a validation function for currency, that meant it would stop after the first comma group. 1,000,000 would become 1,000 . A million dollars transformed into a thousand.
He stared at them side-by-side in Notepad++. The default white backgrounds glared back at him. He scrolled. Then scrolled again. His eyes blurred. The differences were invisible—a changed quantifier here, a removed escape character there. It was like looking for a typo in a phone book.
© Callido Learning Private Limited All rights reserved 2021
WhatsApp us