mwg API
    Preparing search index...

    Function stripSoundMarkers

    • Returns only the player-facing text, removing inline sound markers.

      Parameters

      • source: string

      Returns string

      import { stripSoundMarkers } from '@datamoc/mw_games/i18n';

      stripSoundMarkers('Strike! {sound:hit.wav}'); // 'Strike! '