[Icons] Prevent double underscores after replacement (#96904)

* Prevent double underscores after replacement

* add test

* remove trailing space
This commit is contained in:
Pierre-Louis
2022-01-30 13:16:32 +01:00
committed by GitHub
parent ff09801941
commit 6bd0b95728
3 changed files with 29 additions and 21 deletions

View File

@@ -36,4 +36,8 @@ void main() {
expect(testIsStable(codepointsC, codepointsA), true);
});
});
test('no double underscores', () {
expect(Icon.generateFlutterId('abc__123'), 'abc_123');
});
}