@hebcal/hdate
Version:
converts between Hebrew and Gregorian dates using Rata Die (R.D.) algorithm by Dershowitz and Reingold
13 lines (11 loc) • 401 B
JavaScript
/*! @hebcal/hdate v0.14.4, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
/**
* Removes nekudot from Hebrew string
*/
function hebrewStripNikkud(str) {
const a = str.normalize();
// now strip out niqqud and trope
return a.replace(/[\u0590-\u05bd]/g, '').replace(/[\u05bf-\u05c7]/g, '');
}
export { hebrewStripNikkud };
//# sourceMappingURL=hebrewStripNikkud.js.map